class Employee{
    String number;
    String name;
    double gongzi;
    double time;
    public void improve(){
        System.out.println("增长额"+"工作年限*1000");
        System.out.println("增长额为："+time*1000);
    }//工资增长
    public void total(){
        System.out.println("工资总额=基本工资+增长额");
        System.out.println("工资总额："+gongzi+time*10000);
    }
    public Employee(  String number, String name,double gongzi,double time){
        System.out.println("编号"+number);
        System.out.println("姓名"+name);
        System.out.println("底薪"+gongzi);
        System.out.println("工作时间/年"+ time);
        this.time=time;
        this.gongzi=gongzi;
    }
}
public class Test {
    public static void main(String[] args) {
        Employee ret=new Employee("007","李白",5000,4);
        ret.improve();
        ret.total();

    }




}
